package com.yin.ketech.common.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.List;

/**
 * @author luzw
 * @version V1.0
 * @className ResultPage
 * @description TODO
 * @date 2020/6/1
 **/
@Data
@AllArgsConstructor
@ApiModel(value= "分页统一返回参数")
public class ResultPage<T>{

    @ApiModelProperty(value = "总数")
    private long total;

    @ApiModelProperty(value = "数据")
    private List<T> records;
}
